<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>

<div class="header">
	<h2>
		&nbsp;&nbsp;数据日志信息详细<span>
	</h2>
</div>
<table class="form-table">
	<tbody>

		<tr>
			<td class="td1">操作者：</td>
			<td class="td2">${model.actionerName }</td>
		</tr>
		<tr>
			<td class="td1">类型：</td>
			<td class="td2">${model.actionType } <c:if
					test="${model.actionType eq '删除' }">

					<a class="nui-txt-link" href="javascript:void(0)"
						onclick="recoveData()">恢复数据</a>
					

				</c:if>
			</td>
		</tr>

		<tr>
			<td class="td1">内容描述：</td>
			<td class="td2"><div id="">
					<table id="logDescription">

					</table>

				</div>
			</td>
		</tr>

	</tbody>
</table>
<script type="text/javascript">
<!--


	function recoveData(){
	
		$.post("app/logAction/recoveData",{id:"${model.id}"},function(data){
			
			isperp.alert("数据恢复成功！");
			
			location.reload();
			
		});
	
	};

	var descJson = ${model.description};
	var html = "";
	$.each(descJson, function(k, v) {
		html += "<tr><td><b>" + k + "</b>:</td><td>" + v + "</td></tr>";
	});

	$("#logDescription").html(html)
//-->
</script>


